package com.bom.boot.easy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

//@Configuration
//@EnableAutoConfiguration
@EnableJpaRepositories(basePackages = BomAutoConfiguration.REPOSITORY)
@EntityScan(basePackages = BomAutoConfiguration.ENTITY)
@ComponentScan(basePackages = {BomAutoConfiguration.CONTROLLER, BomAutoConfiguration.SERVICE, BomAutoConfiguration.CACHE, BomAutoConfiguration.CORE})
public class BomAutoConfiguration {
    public static final String ENTITY = "com.bom.boot.easy.entity";
    public static final String CONTROLLER = "com.bom.boot.easy.controller";
    public static final String SERVICE = "com.bom.boot.easy.service.impl";
    public static final String REPOSITORY = "com.bom.boot.easy.repository";
    public static final String CORE = "com.bom.boot.easy.core";
    public static final String CACHE = "com.bom.boot.easy.cache";

    public static void main(String[] args) {
        SpringApplication.run(BomAutoConfiguration.class);
    }
}
